package com.zll.feign;

import com.zll.dto.StockDto;
import com.zll.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("service-stock")
public interface StockService {

    @RequestMapping(value="/stock/in",method= RequestMethod.POST)
    JSONResult in(@RequestBody StockDto stockDto);
}
